import { Injectable } from '@angular/core';
import { HOSTURL, PREFIX  } from '../../../config';
import { RequestClientService } from '../../request-client.service';

@Injectable({
  providedIn: 'root'
})
export class EnvironmentalMonitoringService {

  constructor(
    private requestClientService: RequestClientService
  ) { }



  // 实时环境信息，数组顺序：1温度、2湿度、3PM2.5、4PM10、5噪音、6风速
  public async QueryCurrentProjectsEnvironmentReport(params) {
    const res = await this.requestClientService.post(HOSTURL + `/api/services/${PREFIX}/ThirdParty/QueryCurrentEnvironmentReport`, params);
    return res;
  }
  // 获取项目环境监控数据，统计报表
  public async QueryProjectsEnvironmentReport(params) {
    const res = await this.requestClientService.post(HOSTURL + `/api/services/${PREFIX}/ThirdParty/QueryProjectsEnvironmentReport`, params);
    return res;
  }
}
